#include<iostream>
#include<stdlib.h>
using namespace std;

char** func(){
	char s[100]="   I   like ,,,..    C++ programming!";
	char **a;
	a=(char**)malloc(sizeof(char*)*10);
	for(int l=0;l<10;l++){
		a[l]=(char*)malloc(sizeof(char)*20);
		a[l][0]='\0';
	}
	int i=0,j=0,r=0;
	while(s[i]!='\0'){
		if(s[i]==32||s[i]==44||s[i]==46||s[i]==63||s[i]==33){
			i++;
			continue;
		}
		else{
			a[j][r]=s[i];
			int m=i+1;
			if(s[m]==32||s[m]==44||s[m]==46||s[m]==63||s[m]==33){
				a[j][r+1]='\0';
				j++;
				r=0;
			}
			else{
				r++;
			}
			i++;
		}
	}
	return a;
}

int main(){
	char **ar=func();
	for(int i=0;i<10;i++){
		if(ar[i][0]!='\0')
			cout<<ar[i]<<endl;
	}

	return 0;
}
